﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

using System.Text;
using WindowsFormsApplication1.ConfigCmd;

namespace WindowsFormsApplication1
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            try
            {
                // Beta version
                if (DateTime.Now.Year < 2012 && DateTime.Now.Month < 8)
                {
                    //Application.Run(new MonitorForm());
                    Application.Run(new LoginForm());
                }
                else
                {
                    MessageBox.Show("请联系软件供应商！", "测试版试用到期", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }

            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message, "错误！", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
    }
}
